﻿using SistemaAdministracion.Models.CustomValidation._Account;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace SistemaAdministracion.Models.ViewModels.Account
{
    //clase viewmodel que nos sirve para registrar usuario atraves del modelo
    public class RegisterUserModel
    {
        [Display(Name = "Usuario:")]
        [Required(ErrorMessage = "Ingrese Nombre de Usuario")]
        [CustomValidationUser]
        public string UserName { get; set; }
        [Display(Name = "Password:")]
        [Required(ErrorMessage = "Ingrese Contraseña")]
        [StringLength(20, MinimumLength = 6, ErrorMessage = "Contraseña Debil")]
        public string Password { get; set; }
        [Display(Name = "Email: ")]
        [Required(ErrorMessage = "Ingrese Email")]
        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }

        public bool Vigente { get; set; }

    }
}